package cn.mesmile.design.factory.abstracts;

/**
 * @author zb
 * @date 2021/11/28 22:19
 * @Description
 */
public class AbstractFactoryTest {

    public static void main(String[] args) {
        OrderFactory ali = FactoryProducer.getFactory("ali");
        PayFactory payFactory = ali.createPayFactory();
        RefundFactory refundFactory = ali.createRefundFactory();

        refundFactory.refund();
        payFactory.pay();
    }
}
